package savelog;

/**
 * Title: Devices class for CSIS 343 Final Project 
 * Description: CS 343 Final Project - Devices This class will keep track of the devices the user has
 * 
 * @author Erik Olson
 * @email erik.olson-5@my.uwrf.edu
 * @author Mike Harmon
 * @email michael.harmon@my.uwrf.edu
 * @author Jack Friermuth
 * @email jack.friermuth@my.uwrf.edu
 * @author Luke Vang
 * @email luke.vang@my.uwrf.edu
 * @author Casey Golla
 * @email casey.golla@my.uwrf.edu
 * @date December 4th 2012
 */
public class Devices {
	//id of the device
	private int dev_id;
	
	//name of the device 
	private String dev_name;
	
	/**
	 * Default constructor
	 */
	public Devices() {
		this.dev_id = 0;
		this.dev_name = "";
	}
	
	/**
	 * Alternate constructor
	 * @param int dev_id	   :		the id of the device
	 * @param String dev_name :			name of the device
	 */
	public Devices(int dev_id, String dev_name) {
		this.dev_id = dev_id;
		this.dev_name = dev_name;
	}

	/**
	 * method to get the device id
	 * @return	int dev_id :	The id for the device
	 */
	public int getDev_id() {
		return dev_id;
	}
	
	/**
	 * method to set the device id
	 * @param int new_id : 		New id for the device id
	 */
	public void setDev_id( int new_id ) {
		this.dev_id = new_id;
	}
	
	/**
	 * method to get the device name
	 * @return	string dev_name :	The name of the device
	 */
	public String getDev_name() {
		return dev_name;
	}
	
	/**
	 * method to set the device name
	 * @param string new_name : 	New name for the device
	 */
	public void setDev_name( String new_name ) {
		this.dev_name = new_name;
	}
	
	@Override
	public String toString() {
		return "" + dev_id ;
	}
}
